package cn.idongjia.live.pojo;

import cn.idongjia.base.Base;
import com.fasterxml.jackson.annotation.JsonInclude;

import javax.ws.rs.QueryParam;

/**
 * 直播用户,授权用户
 * 用户验证用户身份
 * Created by wuqiang on 16/4/6.
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class LiveUser extends Base {

    public static final int ANCHOR_USER_TYPE = 0;
    public static final int ADMIN_USER_TYPE = 1;

    private static final long serialVersionUID = 6133087962488433555L;

    @QueryParam("id")
    private Integer id;     //直播用户(kp_user)或管理用户(kp_admin)ID
    @QueryParam("type")
    private Integer type;   //用户类型

    public LiveUser() {
    }

    public LiveUser(Integer id, Integer type) {
        this.id = id;
        this.type = type;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

}
